package com.fz.song.feibao.web.entity.vo.register.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


@Data
@ApiModel(value = "会员注册请求实体类")
public class MemberRegisterReqVO {


    @NotBlank(message = "昵称不能为空")
    @Length(min = 1, max = 10, message = "昵称长度最长10个字符")
    @ApiModelProperty(value = "昵称")
    private String nickname;

    @NotBlank(message = "用户名不能为空")
    @Length(min = 4, max = 20, message = "用户名长度最长20个字符")
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Length(min = 4, max = 20, message = "密码长度最长20个字符")
    @ApiModelProperty(value = "密码")
    private String password;

    @NotBlank(message = "手机号不能为空")
    @Length(min = 11, max = 11, message = "手机号必须11位")
    @ApiModelProperty(value = "手机号")
    private String mobile;

    @NotBlank(message = "验证码不能为空")
    @Length(min = 4, max = 4, message = "验证码长度为4位")
    @ApiModelProperty(value = "验证码")
    private String verifyCode;


}
